package cn.fl.mcr.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.cmm.base.framework.exception.BaseException;
import cn.fl.mcr.service.IMcrWaitBuyBackService;
import cn.fl.mcr.transform.McrWaitBuyBackVOTransform;
import cn.fl.mcr.vo.McrWaitBuyBackVO;
import cn.lionbridgecapital.loan.model.condition.McrWaitBuyBackQC;
import cn.lionbridgecapital.loan.model.dto.McrWaitBuyBackDTO;
import cn.lionbridgecapital.loan.service.api.IMcrWaitBuyBackApiService;


@Service
public class McrWaitBuyBackServiceImpl  implements IMcrWaitBuyBackService {
	
	@SuppressWarnings("unused")
	private static final Logger logger = LoggerFactory.getLogger(IMcrWaitBuyBackService.class);

	@Autowired
	private IMcrWaitBuyBackApiService mcrWaitBuyBackApiService;
	
	@Override
	public List<McrWaitBuyBackVO> searchList(McrWaitBuyBackQC condition) throws BaseException {
		// TODO Auto-generated method stub
		List<McrWaitBuyBackDTO> queryWaitBuyBackByPactNo = mcrWaitBuyBackApiService.queryWaitBuyBackByPactNo(condition);
		return McrWaitBuyBackVOTransform.toVOList(queryWaitBuyBackByPactNo);
	}
	
}

